<table class="IadTableForm">
	<tbody>

		<tr class="prop">
			<td valign="top" class="name"><label for="username"><g:message
						code="secretario.username.label" default="Username" /></label></td>
			<td valign="top"
				class="value ${hasErrors(bean: secretarioInstance, field: 'username', 'errors')}"><g:textField
					name="username" value="${secretarioInstance?.username}" /></td>
		</tr>

		<tr class="prop">
			<td valign="top" class="name"><label for="nome"><g:message
						code="secretario.nome.label" default="Nome" /></label></td>
			<td valign="top" class="value ${hasErrors(bean: secretarioInstance, field: 'nome', 'errors')}">
				<g:textField name="nome" value="${secretarioInstance?.nome}" />
			</td>
		</tr>

		<tr class="prop">
			<td valign="top" class="name"><label for="telefone"><g:message
						code="secretario.telefone.label" default="Telefone" /></label></td>
			<td valign="top"
				class="value ${hasErrors(bean: secretarioInstance, field: 'telefone', 'errors')}"><g:textField
					name="telefone" value="${secretarioInstance?.telefone}" /></td>
		</tr>

		<tr class="prop">
			<td valign="top" class="name"><label for="matricula"><g:message
						code="secretario.matricula.label" default="Matricula" /></label></td>
			<td valign="top"
				class="value ${hasErrors(bean: secretarioInstance, field: 'matricula', 'errors')}"><g:textField
					name="matricula" value="${secretarioInstance?.matricula}" /></td>
		</tr>

		<tr class="prop">
			<td valign="top" class="name"><label for="CPF"><g:message
						code="secretario.CPF.label" default="CPF" /></label></td>
			<td valign="top" class="value ${hasErrors(bean: secretarioInstance, field: 'CPF', 'errors')}">
				<g:textField name="CPF" value="${secretarioInstance?.CPF}" />
			</td>
		</tr>

		<tr class="prop">
			<td valign="top" class="name"><label for="departamento"><g:message
						code="secretario.departamento.label" default="Departamento" /></label></td>
			<td valign="top"
				class="value ${hasErrors(bean: secretarioInstance, field: 'departamento', 'errors')}"><g:select
					name="departamento.id" from="${br.academia.Departamento.list()}" optionKey="id"
					value="${secretarioInstance?.departamento?.id}" /></td>
		</tr>

		<tr class="prop">
			<td valign="top" class="name"><label for="email"><g:message
						code="secretario.email.label" default="Email" /></label></td>
			<td valign="top" class="value ${hasErrors(bean: secretarioInstance, field: 'email', 'errors')}">
				<g:textField name="email" value="${secretarioInstance?.email}" />
			</td>
		</tr>

		<tr class="prop">
			<td valign="top" class="name"><label for="passwordHash"><g:message
						code="secretario.passwordHash.label" default="Password Hash" /></label></td>
			<td valign="top"
				class="value ${hasErrors(bean: secretarioInstance, field: 'passwordHash', 'errors')}"><g:textField
					name="passwordHash" value="${secretarioInstance?.passwordHash}" /></td>
		</tr>

		<tr class="prop">
			<td valign="top" class="name"><label for="roles"><g:message
						code="secretario.roles.label" default="Perfi(s)" /></label></td>
			<td valign="top" class="value ${hasErrors(bean: secretarioInstance, field: 'roles', 'errors')}">
				<g:select name="roles" from="${br.seguranca.ShiroRole.list()}" multiple="yes" optionKey="id"
					noSelection="${['0':'-- Nenhum --']}" size="5" value="${secretarioInstance?.roles}" />
			</td>
		</tr>

	</tbody>
</table>